package com.zqx.proxy.service;

import lombok.extern.slf4j.Slf4j;

/**
 * description: 业务类
 * @author zqx
 * @date 2018/09/04
 */
@Slf4j
public class AccessValidator {

    public boolean validate(String userId)
    {
        System.out.println("在数据库中验证用户"+userId+"是否为合法用户?");

        if(userId.equalsIgnoreCase("张玉娜"))
        {
            System.out.println(userId+"登录成功!而且你很美!");
            return true;
        }else {
            System.out.println(userId+"登录失败");
            return false;
        }
    }
}
